package com.ihr360.expr;

public class ExprException extends Exception
{



    private String variableId;
    private String expression;

    public ExprException() {
        super();
    }
    public ExprException(String variableId,String expression,String message, Throwable cause) {
        super(message, cause);
    }

    public ExprException(String variableId,String expression,Throwable cause) {
        super(String.format("变量:%s 表达式:%s 解析异常:%s",variableId,expression,cause.getMessage()),cause);
    }

    public ExprException(String message, Throwable cause) {
        super(message, cause);
    }

    public ExprException(String message) {
        super(message);
    }

    public ExprException(Throwable cause) {
        super(cause);
    }

    public String getVariableId() {
        return variableId;
    }

    public String getExpression() {
        return expression;
    }


}
